package com.gitee.swsk33.typehandlerdemo.dataobject;

import com.gitee.swsk33.typehandlerdemo.model.Boundary;

import com.gitee.swsk33.typehandlerdemo.typehandler.BoundaryTypeHandler;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

/**
 * 遥感影像元数据对象
 */
@Data
@Table("granule")
public class Granule {

	/**
	 * 主键ID
	 */
	@Id(keyType = KeyType.Auto)
	private int id;

	/**
	 * 遥感影像名称
	 */
	private String name;

	/**
	 * 最小外包矩形边界（使用自定义类型及其类型处理器）
	 */
	@Column(typeHandler = BoundaryTypeHandler.class)
	private Boundary spatialExtent;

}